<aside class="mb-4 d-grid gap-2 mt-4 mt-lg-0">
    <div class="btn-group btn-group-lg">
        <button type="button" class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#iosModal"><i class="bi bi-apple"></i> iOS</button>
        <button type="button" class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#androidModal"><i class="bi bi-android2"></i> Android</button>
    </div>
    <div class="mt-3">
        <img src="https://cdn.fresns.cn/zhijie/miniprogram.png" class="img-fluid" alt="知结小程序">
    </div>
</aside>

{{-- iOS Modal --}}
<div class="modal fade" id="iosModal" tabindex="-1" aria-labelledby="iosModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="iosModalLabel">知结 iOS App</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <p class="text-center text-secondary mt-3">苹果正在审核中，敬请期待...</p>
            </div>
        </div>
    </div>
</div>

{{-- Android Modal --}}
<div class="modal fade" id="androidModal" tabindex="-1" aria-labelledby="androidModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="androidModalLabel">知结 Android App</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="mb-3">
                    <img src="https://cdn.fresns.cn/zhijie/app-download.png" class="img-fluid" alt="知结 App">
                </div>
                <div class="d-grid gap-2">
                    <a href="https://zhijieshequ.com/app/latest.apk" class="btn btn-outline-primary" role="button"><i class="bi bi-android2"></i> 直接下载安装包</a>
                </div>
            </div>
        </div>
    </div>
</div>

<aside class="card border-0 shadow-sm mb-4">
    <div class="card-header d-flex justify-content-between">
        <div class="fw-medium">赞助商</div>
        <div class="fs-7 fw-light text-secondary">tangjie@fresns.cn</div>
    </div>
    <div class="card-body">
        <p class="text-center text-secondary mt-3"><i class="bi bi-robot"></i> 虚位以待</p>
    </div>
</aside>

<section class="text-muted mb-4 fs-8 fs-text-decoration">
    <p class="mb-1">
        @if (fs_api_config('account_terms_status'))
            <a href="{{ fs_route(route('fresns.custom.page', ['name' => 'policies'])).'#terms-tab' }}" class="link-secondary">{{ fs_lang('accountPoliciesTerms') }}</a>
        @endif
        @if (fs_api_config('account_privacy_status'))
            <a href="{{ fs_route(route('fresns.custom.page', ['name' => 'policies'])).'#privacy-tab' }}" class="link-secondary ms-2">{{ fs_lang('accountPoliciesPrivacy') }}</a>
        @endif
        @if (fs_api_config('account_cookies_status'))
            <a href="{{ fs_route(route('fresns.custom.page', ['name' => 'policies'])).'#cookies-tab' }}" class="link-secondary ms-2">{{ fs_lang('accountPoliciesCookies') }}</a>
        @endif
    </p>

    <p class="mb-3">&copy; {{fs_db_config('site_copyright_years')}} {{fs_db_config('site_copyright')}} | Powered by <a href="https://fresns.org" target="_blank" class="link-secondary">Fresns</a></p>

    @if (fs_db_config('site_china_mode'))
        @if (fs_db_config('china_icp_filing'))
            <p class="mb-0">弗雷森斯（苏州）科技有限公司</p>
            <p class="mb-0"><a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow" class="link-secondary">{{fs_db_config('china_icp_filing')}}</a></p>
        @endif

        @if (fs_db_config('china_psb_filing'))
            <p class="mb-0">
                <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{ Str::of(fs_db_config('china_psb_filing'))->match('/\d+/') }}" target="_blank" rel="nofollow" class="link-secondary">{{ fs_db_config('china_psb_filing') }}</a>
            </p>
        @endif

        @if (fs_db_config('china_icp_license'))
            <p class="mb-0">{{ fs_db_config('china_icp_license') }}</p>
        @endif
    @endif

    @if (fs_db_config('china_broadcasting_license'))
        <p class="mb-0">{{ fs_db_config('china_broadcasting_license') }}</p>
    @endif

    <p class="mt-3 mb-0 fw-medium">不良信息举报</p>
    <p class="mb-0">举报联系人：唐先生</p>
    <p class="mb-0">举报电话：13372151911</p>
    <p class="mb-0">举报邮箱：jubao@fresns.cn</p>
</section>
